package com.joysuch.wwyt.bp.repository;

import com.joysuch.wwyt.bp.entity.BpWorkSafetyCertType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface BpWorkSafetyCertTypeDao extends JpaRepository<BpWorkSafetyCertType, Long> {

    //   // @Query(value = "select m from wwyt_bp_work_safety_cert_type m where m.sync_state =?1",nativeQuery = true)
//    @Query(value = "select m from BpWorkSafetyCertType m where m.syncState = 0")
//    List<BpWorkSafetyCertType> findBySuncState(int i);

    @Query(value = "select m from BpWorkSafetyCertType m where m.syncState = ?1")
    List<BpWorkSafetyCertType> findBySyncStates(int i);

    List<BpWorkSafetyCertType> findBySyncState(int i);
}
